<div id="cadre">
    <h2><?php echo _PRODUITS_GAGNES_ ?></h2>
    <div id="texte">
        <?php if(!empty($dataList)):?>
        <table class="liststyle">
            <thead><tr><th>Nom</th><th>Images</th><th>Date</th><th>Prix(<?php  echo $site->getDevise(); ?>)</th><th>Limite</th><th>Enchère(<?php  echo $site->getDevise(); ?>)</th><th>Reçu</th><th>Net à payer</th></tr></thead>
            <tbody>
            <?php foreach($dataList as $data): ?>
            <tr>
                <td><a href="detail-product-<?php  echo $data['id']; ?>.html" title="<?php  echo $data['nom']; ?>"><?php  echo $data['nom']; ?></a></td>
                <td><img src="<?php  echo _UPLOAD_DIR_.'encheres/'.$data['images']; ?>" alt="<?php  echo $data['nom']; ?>" title="<?php  echo $data['nom']; ?>" width="100"/></td>
                <td><?php  echo $data['dateFin']; ?></td>
                <td><?php  echo $data['prix']; ?></td>
                <td><?php  echo $data['limite']; ?></td>
                <td><?php  echo $data['enchere']; ?></td>
                <td><?php  echo $data['sent']?'oui':'non'; ?></td>
                <td class="val_enchere">
                    <?php if (!empty($data['net_to_pay'] )) : ?>
                        <span><?php  echo $data['net_to_pay']; ?><?php  echo $site->getDevise(); ?></span>
                        <a class="btn_achatenchere" href="#" id="p<?php echo $data['id'].'-'.($user->isAuthenticated()?intval($user->getId()):0) ?>" title=""><?php echo _CLIQUEZ_ICI_?></a>
                    <?php else : ?>
                        <?php echo _RIEN_A_PAYER_; ?>
                    <?php endif; ?>
                </td>
                
            </tr> 
            <?php endforeach; ?>
            </tbody>
            <tfoot><tr><th>Nom</th><th>Images</th><th>Date</th><th>Prix</th><th>Limite</th><th>Enchère</th><th>Reçu</th><th>Net à payer</th></tr></tfoot>
        </table>
        <?php else: ?>
        <p><?php echo _AUCUN_PRODUITS_GAGNES_?></p>
        <?php endif; ?>
    </div>
</div>
